<?php 

class AnswerController extends Controller{
	private $db;
	public function __init()
	{
		$this->db=K('Answer');
	}
	//存储答案
	public function add()
	{ 	
		if(IS_POST){
			if ($this->db->addAnswer()) {
				$this->success('感谢你的回答','edit');
			}else{
				$this->error($this->db->error);
			}
		}
		
	}

}


 ?>